<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>删除用户</title>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/device2.css"/>
</head>
<body>
<%
    String user_id = (String) session.getAttribute("user_id");
    Boolean power = (Boolean) session.getAttribute("power");
%>
<%if(power!=null && user_id!= null && power){ %>
<h2>删除用户</h2>

<form action="<%=request.getContextPath()%>/deleteUser.do" method="post">
    <label for="username">要删除的账号：</label>
    <input type="text" id="username" name="username" required><br>

    <button type="submit">删除用户</button>
</form>
<%}else{%>
<h5>您好！您无权限进入此页面！</h5>
<% }%>
</body>
</html>
